@echo off

set CWD=%~dp0
REM Photoshop 安装目录:
set INSTALL_PATH=C:\Program Files\Adobe\Adobe Photoshop CC 2018
REM 插件目录:
set PS_PLUGIN_PATH=%INSTALL_PATH%\Required\CEP\extensions
REM 脚本目录:
set PS_SCRIPT_PATH=%INSTALL_PATH%\Presets\Scripts
REM 当前插件路径:
set PLUGIN_PATH=com.psd2ugui
REM 当前脚本路径:
set SCRIPT_PATH=Export PSDUI.jsx
REM ParseTextStyle2.jsx
set SCRIPT_LIB_PATH=ParseTextStyle2.jsx

REM 文件夹映射
mklink /J "%PS_PLUGIN_PATH%\%PLUGIN_PATH%" "%CWD%\%PLUGIN_PATH%"
mklink "%PS_SCRIPT_PATH%\%SCRIPT_PATH%" "%CWD%\Scripts\%SCRIPT_PATH%"
mklink "%PS_SCRIPT_PATH%\%SCRIPT_LIB_PATH%" "%CWD%\Scripts\%SCRIPT_LIB_PATH%"

pause